Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve regexp component performance in loki.process: call fmt only if debug enabled #2272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

r0ka
Copy link

@r0ka r0ka commented Dec 12, 2024

PR Description
Which issue(s) this PR fixes
improve regexp performance in loki.process: call fmt only if debug is enabled

Notes to the Reviewer
Was doing promtail vs alloy perf tests, and found that alloy consumes at least 40% more CPU than promtail.
here is the link for cpu.pprof
alloy cpu pprof

promtail cpu pprof

PR Checklist
[ X] CHANGELOG.md updated

@r0ka r0ka requested a review from a team as a code owner December 12, 2024 14:21
@CLAassistant
Copy link

CLAassistant commented Dec 12, 2024

CLA assistant check
All committers have signed the CLA.

@r0ka r0ka changed the title improve regexp performance in loki.process: call fmt only if debug … improve regexp performance in loki.process: call fmt only if debug enabled Dec 12, 2024
@r0ka r0ka changed the title improve regexp performance in loki.process: call fmt only if debug enabled improve regexp component performance in loki.process: call fmt only if debug enabled Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants